import 'dart:convert';
import 'package:enterprise_v6_app/generated/json/base/json_field.dart';
import 'package:enterprise_v6_app/generated/json/product_storage_entity.g.dart';
export 'package:enterprise_v6_app/generated/json/product_storage_entity.g.dart';

/// 产品存储量
@JsonSerializable()
class ProductStorageEntity {
  ProductStorageEntity();

  factory ProductStorageEntity.fromJson(Map<String, dynamic> json) => $ProductStorageEntityFromJson(json);

  ///	箱含药量
  int? boxContent = 0;

  ///	企业Code
  String? companyCode = '';

  ///	产品id
  String? productId = '';

  ///	产品级别
  String? productLevel = '';

  ///	产品名称
  String? productName = '';

  ///	安全责任人名称
  String? sadetyPersonName = '';

  ///	存储总量
  int? total = 0;

  ///	仓库id
  String? warehouseId = '';

  ///	仓库名称
  String? warehouseName = '';

  Map<String, dynamic> toJson() => $ProductStorageEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}
